import request from '@/utils/request'

// 查询部门客户关联列表
export function listCusDepartGroup(query) {
  return request({
    url: '/system/cusdepartgroup/list',
    method: 'get',
    params: query
  })
}

// 查询部门客户关联详细
export function getCusDepartGroup(guid) {
  return request({
    url: '/system/cusdepartgroup/' + guid,
    method: 'get'
  })
}

// 新增部门客户关联
export function addCusDepartGroup(data) {
  return request({
    url: '/system/cusdepartgroup',
    method: 'post',
    data: data
  })
}

// 修改部门客户关联
export function updateCusDepartGroup(data) {
  return request({
    url: '/system/cusdepartgroup',
    method: 'put',
    data: data
  })
}

// 删除部门客户关联
export function delCusDepartGroup(guid) {
  return request({
    url: '/system/cusdepartgroup/' + guid,
    method: 'delete'
  })
}

// 导出部门客户关联
export function exportCusDepartGroup(query) {
  return request({
    url: '/system/cusdepartgroup/export',
    method: 'get',
    params: query
  })
}
